package xy.donate.android.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import cn.bmob.v3.BmobObject;

@Entity
public class UserLoginEntity extends BmobObject {

    @PrimaryKey
    @NonNull
    private String UserID;
    private String phone;
    private String password;

    public UserLoginEntity() {
        UserID = "";
        setTableName("Login");
    }

    @Ignore
    public UserLoginEntity(@NonNull String userID, String phone, String password) {
        UserID = userID;
        this.phone = phone;
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserLoginEntity{" +
                "UserID='" + UserID + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getUserID() {
        return UserID;
    }

    public void setUserID(String userID) {
        UserID = userID;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
